﻿import java.util.Scanner;

public class prac_10 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个整数：");
		int i = sc.nextInt();
		int r;
		System.out.println("逆向输出的结果是：");
		do{
			r=i%10;
			System.out.print(r);
			i=i/10;
		}while(i!=0);
	}
}